size(600, 600);
noStroke();
background(255);
fill(255,0,0);
quad(width/2, 0, 
     width, height/2, 
     width/2, height,
     0, height/2);

